#include "StdAfx.h"
#include "logmgr.h"

INSTANCE_SINGLETON(CLogMgr)

CLogMgr::CLogMgr(void)
{
}

CLogMgr::~CLogMgr(void)
{
}

bool CLogMgr::Init( void )
{
    m_file_log = CreateFileLog("./", "p2pserver");
    if (!m_file_log)
    {
        return false;
    }

    m_file_log->OpenLevel(LOG_LEVEL_CRI);

    return true;
}

void CLogMgr::UnInit( void )
{
    if (m_file_log)
    {
        m_file_log->Release();
        m_file_log = NULL;
    }
}
